#include"process.h"
void ProncessOn() //函数定义
{
    int cnt = 0;
    char bar[101];
    char wait[] = {'|','\\','-','/'};
    memset(bar,'\0',sizeof(bar));
    
    while(cnt <= 100)//cnt 执行101次
    {
        printf("[%-100s][%2d%%][%c]\r",bar,cnt,wait[cnt%4]);
       bar[cnt++] = '>';
       fflush(stdout);
       usleep(50000); //usleep:微秒
      // sleep(1);
    }
    printf("\n");
}
